package com.cos.springboot.lession67;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration;
import org.springframework.context.annotation.ComponentScan;
/**
 *
 * @author: COS
 * @return:
 * @time: 2021/12/1 10:48
 * @description: 启动类上使用@ComponentScan的注解来,标识扫描不在启动类同级包下的其他类
 *
 * @SpringBootApplication(exclude = DataSourceTransactionManagerAutoConfiguration.class) 手动移除/排除自动化配置
 */
@SpringBootApplication
@ComponentScan(basePackages = "com.cos.springboot")
public class Lession67Application {
    public static void main(String[] args) {
        SpringApplication.run(Lession67Application.class, args);
    }
}
